IndexedField<T>(DataRow,Int32) Method
A hint to create and use an index on the specified data column. The hint has default action.
public static IndexedField<>(
System.Data.DataRow ,
System.int columnIndex
)
'Declaration
Public Overloads Shared Function IndexedField(Of )( _
ByVal As System.Data.DataRow, _
ByVal columnIndex As System.Integer _
) As
Parameters
- row
- The data row.
- columnIndex
- The zero-based ordinal position of the column.
Type Parameters
- T
- The type of the data column
Return Value
The data column value.
var query = from c in customersTable
where c.IndexedField<string>(0) == "ALFKI"
select c;